<!DOCTYPE html>
<html>
    <head>
        <title>Example</title>
    </head>
    <body>
        <!-- 主流浏览器尚不支持contextmenu -->
        <p contextmenu="supermenu">menu</p>
        <menu id="supermenu">
            <command label="Step 1: Write Tutorial" onclick="doSomething()">
            <command label="Step 2: Edit Tutorial" onclick="doSomethingElse()">
          </menu>
    </body>
</html>